package com.topisv.tms.entity.stock.reverse;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.AreaGroup;
import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.IdEntity;
import com.topisv.tms.entity.User;
import com.topisv.tms.utils.DateUtils;

/**
 * 冲正单明细_实体类
 */
@Entity
@Table(name = "reverse_bill_item")
public class ReverseBillItem extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String customerCode;
	
	private String warehouseCode;
	
	private String billCode;
	
	private String stockCode;
	
	private String boxCode;
	
	private String sku;
	
	private Integer salesNumFix;
	
	private Integer unusedNumFix;
	
	private Integer orderNumFix;
	
	private String dutyUuid;
	
	private String dutyReason;
	
	private String status; //冲正状态 （undo: 待冲正 done: 已冲正）
	
	private String reverserUuid;
	
	private Date reverseTime;
	
	private String batchCode;
	
	private String productDate;
	
	private String expireDate;
	
	public String getReverserUuid() {
		return reverserUuid;
	}

	public void setReverserUuid(String reverserUuid) {
		this.reverserUuid = reverserUuid;
	}
	@Transient
	public String getReversetimeStr() {
		return ((reverseTime==null)?"":DateUtils.format(reverseTime, "yyyy-MM-dd HH:mm:ss"));
	}
	public Date getReverseTime() {
		return reverseTime;
	}

	public void setReverseTime(Date reverseTime) {
		this.reverseTime = reverseTime;
	}

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getBoxCode() {
		return boxCode;
	}

	public void setBoxCode(String boxCode) {
		this.boxCode = boxCode;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public Integer getSalesNumFix() {
		return salesNumFix;
	}

	public void setSalesNumFix(Integer salesNumFix) {
		this.salesNumFix = salesNumFix;
	}

	public Integer getUnusedNumFix() {
		return unusedNumFix;
	}

	public void setUnusedNumFix(Integer unusedNumFix) {
		this.unusedNumFix = unusedNumFix;
	}

	public Integer getOrderNumFix() {
		return orderNumFix;
	}

	public void setOrderNumFix(Integer orderNumFix) {
		this.orderNumFix = orderNumFix;
	}

	public String getDutyUuid() {
		return dutyUuid;
	}

	public void setDutyUuid(String dutyUuid) {
		this.dutyUuid = dutyUuid;
	}

	public String getDutyReason() {
		return dutyReason;
	}

	public void setDutyReason(String dutyReason) {
		this.dutyReason = dutyReason;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
    public String getBatchCode() {
        return batchCode;
    }

    
    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    
    public String getProductDate() {
        return productDate;
    }

    
    public void setProductDate(String productDate) {
        this.productDate = productDate;
    }

    
    public String getExpireDate() {
        return expireDate;
    }

    
    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }

    //dto
	private Customers customer;
	private AreaGroup warehouse;
	private User duter;
	private User reverser;

	@Transient
	public Customers getCustomer() {
		return customer;
	}
	public void setCustomer(Customers customer) {
		this.customer = customer;
	}
	
	@Transient
	public AreaGroup getWarehouse() {
		return warehouse;
	}
	public void setWarehouse(AreaGroup warehouse) {
		this.warehouse = warehouse;
	}

	@Transient
	public User getDuter() {
		return duter;
	}

	public void setDuter(User duter) {
		this.duter = duter;
	}

	@Transient
	public User getReverser() {
		return reverser;
	}

	public void setReverser(User reverser) {
		this.reverser = reverser;
	}
	
	
	
}